<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<table>
    <tr>
        <th>姓名</th>
        <th>密码</th>
    </tr>
    @foreach ($users as $user)
    <tr>
        <td>{{ $user->name }}</td>
        <td>{{ $user->password }}</td>
        <td><a href='/delete?name={{ $user->name }}' >删除</a></td>
        <td><a href='/update?name={{ $user->name }}'>修改</a></td>
    </tr>


    @endforeach
    <a href="/register">添加</a>
{{--{{$products.desk.price}}--}}

{{--    @each('lists', $lists, 'lis')--}}


</table>
</body>
</html>
